<?php if (!empty($errors)) : ?>
	<?php foreach ($errors as $error) : ?>
		<span style="color:red;font-style:italic"><?php echo $error; ?></span>
		<br>
	<?php endforeach; ?>
<?php endif; ?>

<form method="POST" action="create">
	<h1>New Topic</h1>
	<span>Title:</span>
	<input type="text" name="title" />
	<br>
	<span>Content</span>
	<textarea type="text" name="content"></textarea>
	<br>
	<span>Tag</span>
	<input type="text" name="tags" />
	<span>Tags are separated by a comma (,)</span>
	<br>
	<input type="submit" value="Submit" />
</form>
